import { get, post } from "@/requests/index"

export function getShopOPtions(){
	return get("/shop/options")
}
export function getShopNameOPtions(){
	return get("/shop/shopNameOptions")
}
export function checkShop(data,config){
	return post("/shop/shopCheck",data,config)
}
export function getUrl(id){
	return get("/shop/getUrl",{
		id,
	})
}
export function groupDate(data={}){
	return get("/shop/groupDate",data)
}

export function postPriority(id){ 
	return post("/shop/priority/"+id,{})
}


/**
 * 关联店铺
 *
 * @param data 包含相关度信息的对象，默认为空对象
 * @returns 返回 post 请求的结果
 */
export function postRelevancy(data={}){ 
	return post("/shop/batchChangeRelevancy",data)
}
